﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true"
    CodeBehind="S_SaleProc.aspx.cs" Inherits="JTicket.UI.S_SaleProc" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <!--分页Script-->
    <script type="text/jscript">
        var pages = 1;
        var page = 0;
        function pageselectCallback(page_id, jq) {
            window.location.href = "S_SaleProc.aspx?page=" + page_id;
        }
        $(document).ready(function () {
            $("#pager").pagination(pages, {
                current_page: page,
                items_per_page: 1,
                first_text: "首页",
                prev_text: "上一页",
                next_text: "下一页",
                last_text: "尾页",
                ellipse_text: " ",
                callback: pageselectCallback
            });

        });
        //查询
        function IsSelect() {
            window.location.href = "S_SaleProc.aspx?&page=0";
        }

        function IsPrint() {
            bdhtml = window.document.body.innerHTML;
            sprnstr = "<!--startprint-->";
            eprnstr = "<!--endprint-->";
            prnhtml = bdhtml.substr(bdhtml.indexOf(sprnstr) + 17);
            prnhtml = prnhtml.substring(0, prnhtml.indexOf(eprnstr));
            window.document.body.innerHTML = prnhtml;
            window.print();
        } 
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table align="center" cellpadding="4" cellspacing="1" border="1" width="100%" class="toptable grid fixed">
        <tr>
            <td class="category t2" style="width: 716px; height: 25px;">
                销售日期：<input id="txtBegin" class="input" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                    runat="server" />
                至<input id="txtEnd" class="input" type="text" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                    runat="server" />
                <asp:Button ID="Button1" runat="server" CssClass="submitMiniGreen" OnClientClick="IsSelect();"
                    Text="记录查询" OnClick="Button1_Click" />
                &nbsp;</td>
            <td class="category" style="height: 25px">
            </td>
        </tr>
    </table>
    <!--startprint-->
    <table cellpadding="1" cellspacing="1" id="TbInfo" class="TbInfo" >
        <tr>
            <td class="B" style="width: 3%">
                序号
            </td> 
             <td class="B" style="width: 6%">
                条形码
            </td>
            <td class="B" style="width: 10%">
                演出名称
            </td>
            <td class="B">
                演出单位
            </td>

            <td class="B" style="width: 8%">
                剧院名称
            </td>
            <td class="B" style="width: 5%">
                区域
            </td>
            <td class="B" style="width: 5%">
                排号
            </td>
            <td class="B" style="width: 5%">
                座位号
            </td>
            <td class="B" style="width: 6%">
                票类名称
            </td>
            <td class="B" style="width: 6%">
                单价
            </td>
            <td class="B" style="width: 6%">
                销售价格
            </td>
            <td class="B" style="width: 4%">
                折扣
            </td>
            <td class="B" style="width: 6%">
                操作日期
            </td>
            <td class="B" style="width: 6%">
                操作时间
            </td>
            <td class="B" style="width: 5%">
                操作员
            </td>
            <td class="B" style="width: 6%">
                注释
            </td>
        </tr>
        <%int i = 0;%>
        <%foreach (var x in _SaleProc)
          {%>
        <tr>
            <td class="td1">
                <%i += 1;%>
                <%=i.ToString()%>
            </td> 
            <td class="td1">
                <%=x.BarCode%>
            </td>
            <td class="td1">
                <%=x.stitle%>
            </td>
            <td class="td1">
                <%=x.Steam%>
            </td>
           
            <td class="td1">
                <%=x.ThName%>
            </td>
            <td class="td1">
                <%=x.Area%>
            </td>
            <td class="td1">
                <%=x.Row%>
            </td>
            <td class="td1">
                <%=x.Cow%>
            </td>
            <td class="td1">
                <%=x.TicketName%>
            </td>
            <td class="td1">
                <%=x.Price%>
            </td>
            <td class="td1">
                <%=x.SaleAmt%>
            </td>
            <td class="td1">
                <%=x.Zhekou%>
            </td>
            <td class="td1">
                <%=x.SaleDate%>
            </td>
            <td class="td1">
                <%=x.SaleTime%>
            </td>
            <td class="td1">
                <%=x.OperCode%>
            </td>
            <td class="td1">
                <%=x.Note%>
            </td>
        </tr>
        <%}%>
    </table>
    <!--endprint-->
    <div id="pager" class="pagination" style="background: #FFFFFF">
    </div>
</asp:Content>
